// Fill out your copyright notice in the Description page of Project Settings.


#include "HUD/SayuHUD.h"
#include "HUD/SayuWidget.h"

void ASayuHUD::BeginPlay() {
	Super::BeginPlay();

	UWorld* World = GetWorld();
	if (World)
	{
		APlayerController* Controller = World->GetFirstPlayerController();
		if (Controller && SayuWidgetClass)
		{
			SayuWidget = CreateWidget<USayuWidget>(Controller, SayuWidgetClass);
			SayuWidget->AddToViewport();
		}
	}
}